﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Common;

namespace ElectrosLtd.Models
{
    public class FilterFaultsForAdminModel
    {
        public User myUser { get; set; }
        public UserFault myUF { get; set; }

        public string usernameChosen { get; set; }
        public int StatusChosen { get; set; }
        public SelectList filterByUsernameList { get; set; }
        public SelectList filterByFaultStatus { get; set; }
        public string FromDate { get; set; }
        public string ToDate { get; set; }

        public FilterFaultsForAdminModel()
        {
            filterByUsernameList = new SelectList(new UsersServ.WCFUsersClient().GetUsernames(), "Username", "Username");
            filterByFaultStatus = new SelectList(new ProductsServ.WCFProductsClient().GetFaultStatus(), "ID", "Status");
        }
    }
}